<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateInspectionTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('inspection', function (Blueprint $table) {
            $table->id();
            $table->string('openid',50)->comment('报告单号');
            $table->string('name',50)->comment('就诊人');
            $table->string('idnumber',50)->comment('身份证号');
            $table->string('tion_type',50)->comment('检查类型');
            $table->dateTime('datetime_ins')->comment('检查时间');
            $table->dateTime('datetime_ups')->comment('报告生成时间');
            $table->string('examine',250)->comment('检查所见');
            $table->string('conclusion',250)->comment('检查结论');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('inspection');
    }
}
